Skip to content

Conversation

@TheMeanCanEHdian
Copy link

@TheMeanCanEHdian TheMeanCanEHdian commented Sep 24, 2021

Currently, flutter_inner_drawer supports using a negative horizontal offset. However, doing so breaks the animation when revealing and hiding the drawer, forcing you to use a minimum horizontal offset of 0.

This change fixes that, allowing drawers that are narrower than half the screen width to be configured. Supporting this is particularly useful for devices in landscape mode like tablets.

The changes to the drift (difference in movement compared to gesture) is almost negligible and is comparable to the drift that already exists.

The value of 2.05 was used when manually tuning as it offered the most similar experience for both positive and negative offsets.

Allows for a negative offset to be used for narrower drawers in landscape.

Co-Authored-By: JonnyWong16 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant